package com.middlesummer.yuxiaoshuang;

import com.middlesummer.yuxiaoshuang.strategy.ImageSequenceSwitch;
import com.middlesummer.yuxiaoshuang.strategy.impl.ImageNameSequenceSwitchImpl;
import org.apache.commons.configuration.ConfigurationException;
import org.apache.commons.configuration.PropertiesConfiguration;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * @author：maolan
 * @date：2022/5/4 12:25
 * @describe: 测试类
 */
public class Test {

    public static void main(String[] args) throws ConfigurationException {
        PropertiesConfiguration configuration = new PropertiesConfiguration("filepath.properties");
        String imagesFilePath = configuration.getString("imagesFilePath");
        ImageSequenceSwitch imageSequenceSwitch = new ImageNameSequenceSwitchImpl();
        imageSequenceSwitch.sequenceSwitch(imagesFilePath);
    }
}
